home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Control Panel Hide Sys.xpl < prev    next >
Text File  |  1999-09-03  |  2KB  |  72 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="4"
  4. "UIPATH"="Appearance\Control Panel\Other Settings"
  5. "NAME"="Visible pages in "System""
  6. "LANGUAGE"="VBScript"
  7. "VERSION"="1.01"
  8. "TEXT 1"="Show "Device Manager" page in System control"
  9. "TEXT 2"="Show "Hardware Profiles" page in System control"
  10. "TEXT 3"="Show "File System" button in System control"
  11. "TEXT 4"="Show "Virtual Memory" button in System control"
  12. "DESCRIPTION 1"="To show a page inside the "System" control, activate it. To hide it, deactivate it."
  13. "DESCRIPTION 2"="These settings are for Windows 95 and Windows 98 only."
  14. "AUTHOR"="Xteq Systems"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  17. "COMMENT 2"="Thanks for CptSiskoX for the settings!"
  18.  
  19.  
  20.  
  21. 'All DWORD. 1 = don't show, anything else =show
  22. sV1="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\NoDevMgrPage" 
  23. sV2="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\NoConfigPage"
  24. sV3="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\NoFileSysPage"
  25. sV4="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\NoVirtMemPage"
  26.  
  27. Sub Plugin_Initialize 
  28.  if GetWinVer=1 or GetWinVer=3 then
  29.     i=RegReadValue(sV1)
  30.     if i<>1 then SetUIElement 1,true
  31.  
  32.     i=RegReadValue(sV2)
  33.     if i<>1 then SetUIElement 2,true
  34.  
  35.     i=RegReadValue(sV3)
  36.     if i<>1 then SetUIElement 3,true
  37.  
  38.     i=RegReadValue(sV4)
  39.     if i<>1 then SetUIElement 4,true
  40.  else
  41.     Call Disable()
  42.  end if
  43. End Sub
  44.  
  45. Sub Plugin_CheckData(ElementIndex)
  46. End Sub
  47.  
  48. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  49.  Call WriteIt(1,sV1)
  50.  Call WriteIt(2,sV2)
  51.  Call WriteIt(3,sV3)
  52.  Call WriteIt(4,sV4)
  53. End Sub
  54.  
  55. Sub WriteIt(ITM,VAL)
  56.  b=GetUIElement(ITM)
  57.  if b=false then
  58.     call RegWriteValue(VAL,1,2)
  59.  else
  60.     chk=RegReadValue(VAL)
  61.     if IsEmpty(chk)=false then
  62.        Call RegDeleteValue(VAL)
  63.     end if
  64.  end if
  65. end sub
  66.  
  67. Sub Plugin_Terminate 
  68. End Sub
  69.  
  70.  
  71.  
  72.